package com.link.common.packet.resp;

import com.link.common.packet.ResponseOperate;
import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext;

public final  class SimplePacketResp {

    public static ByteBuf response(ChannelHandlerContext ctx, ResponseOperate type, short code){

        ByteBuf buffer = ctx.alloc().buffer(6);
        buffer.writeInt(type.code);


        buffer.writeShort(code);


        return buffer;
    }
}
